﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="KF_time.aspx.cs" Inherits="Web.KF_time" %>
<%@ Register Assembly="Control" Namespace="Com.Control" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>时间段列表</title>
    
        <script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript" src="js/jquery.js"></script>

    <link href="css/CodeProject.css" rel="stylesheet" type="text/css" />
    <link href="css/Page.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    
    <table style="border: 1px solid #9abddd;" border="0" cellpadding="0" cellspacing="0"
            width="98%">
            <tr>
                <td class="TitleBar" colspan="6" align="center">
                    时间段列表
                </td>
            </tr>
            <tr>
                <td class="Pager" colspan="6" style="padding-right: 30px; text-align: left;">
                 

                    &nbsp;&nbsp; 开始时间：&nbsp;&nbsp;<asp:TextBox ID="BeginDataTime" runat="server" onclick="new WdatePicker({dateFmt:'yyyy-MM-dd'});"
                        TabIndex="10" Width="85px"></asp:TextBox>
                    &nbsp;&nbsp; 结束时间：&nbsp;&nbsp;<asp:TextBox ID="EndDataTime" runat="server" onclick="new WdatePicker({dateFmt:'yyyy-MM-dd'});"
                        TabIndex="11" Width="85px"></asp:TextBox>
                    &nbsp;&nbsp;
                    
                       <asp:Label ID="lblName" runat="server" Text="操作人："></asp:Label>
                    &nbsp;
                    <asp:DropDownList ID="ddlDoPeper" runat="server" TabIndex="8" Width="70px">
                    </asp:DropDownList>
             <asp:Button runat="server" ID="btn_ok" Text="查询" OnClick="btn_ok_Click" Width="200px"  style="  float:right;" />
                   
                </td>
            </tr>
            
          
            
            
            <tr>
                <td class="Pager" colspan="4" style="padding-right: 10px; text-align: right;">
                    <cc1:MyPageBar ID="MyPageBar2" runat="server" />
                </td>
                <td class="Pager" colspan="2" style="padding-right: 10px; text-align: right;">
                    <asp:Button runat="server" ID="btn_del" Text="删除全为0数据" 
                        onclick="btn_del_Click"   />
                    <asp:Button runat="server" ID="btn_add" Text="添加时间段数据" OnClick="btn_add_Click" />
                </td>
            </tr>
            <tr>
                <td class="MenuItem" align="center">
                    时间段
                </td>
                <td class="MenuItem" align="center">
                    在线数
                </td>
                <td class="MenuItem" align="center">
                    电话数
                </td>
                
                  <td class="MenuItem" align="center">
                    添加时间
                </td>
                 <td class="MenuItem" align="center">
                    操作人
                </td>
               
             
                <td class="MenuItemRight" align="center">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="repeater" runat="server" 
                onitemcommand="repeater_ItemCommand" >
                <ItemTemplate>
                    <tr style='background-color: <%#(Container.ItemIndex%2==0)?"write":"#f5f5f5;"%>'>
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;">
                                <%#Eval("Name")%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Eval("line_nums")%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Eval("tel_nums")%></b></span>
                        </td>
                        
                           <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Convert.ToDateTime(Eval("I_datetime"))%></b></span>
                        </td>
                      <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Eval("do_name")%></b></span>
                        </td>
                       
                        <td class="RecordItemRight" style="text-align: center;">
                            <a class="Link" href="KF_timeup.aspx?id=<%#Eval("id")%>&backURL=<%# backURL %>">修改</a>
                            <asp:LinkButton runat="server" ID="lkb" CommandArgument='<%#Eval("id")%>' CommandName="del"
                                Text="删除" OnClientClick="return   confirm( '您确认删除该记录吗? '); "></asp:LinkButton> 
                        </td>
                    </tr>
                
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td class="Pager" colspan="6" style="padding-right: 10px; text-align: center;">
                    <cc1:MyPageBar ID="MyPageBar1" runat="server" />
                </td>
            </tr>
        </table>
    
    
    </div>
    </form>
</body>
</html>
